home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilstem / util2 / npad.do1 < prev    next >
Encoding:
Text File  |  1986-10-30  |  3.6 KB  |  84 lines

  1.  
  2.           NPAD (Notepad)                          Steven Holzner
  3.           Command                                         No. 19
  4.  
  5.           ______________________________________________________
  6.  
  7.           Purpose:  Creates an on-screen window in which to keep
  8.                     notes while working in other programs.
  9.  
  10.           Format:   NPAD         (loads memory-resident program)
  11.                     <Ctrl-N>            (toggles notepad on/off)
  12.  
  13.           Remarks:  The NPAD notepad holds 10 lines of 25
  14.                     characters each.  The window is toggled on
  15.                     and off in the upper right corner of the
  16.                     screen.  Toggling the window off does not
  17.                     eliminate its contents, but pressing the
  18.                     Delete key while the window is on-screen
  19.                     does.  Single characters may be deleted with
  20.                     the backspace, and the carriage return is
  21.                     also recognized.  No provision for storing
  22.                     the contents of the notepad as a file are
  23.                     available, however.
  24.  
  25.                     Option 1: NPAD.COM can be modified by using
  26.                     DEBUG.  The ASCII and scan codes for the
  27.                     default trigger key (Ctrl-N) are 0Eh and 31h,
  28.                     respectively, and are located at the offset
  29.                     addresses xxxx:0336 and xxxx:0337.  To change
  30.                     these to use the reverse apostrophe (grave
  31.                     accent), you would enter
  32.  
  33.                          DEBUG NPAD.COM
  34.  
  35.                     and
  36.  
  37.                          -E 336
  38.  
  39.                     DEBUG will respond with
  40.  
  41.                     xxxx:0336  0E.
  42.  
  43.                     and you simply type in the new ASCII code, in
  44.                     this case, 60 (the hex value of decimal 96).
  45.  
  46.                     After entering E 337 and getting the response
  47.  
  48.                     xxxx:0337  31.
  49.  
  50.                     you type in the new scan code 29 (41 decimal)
  51.                     for the grave accent.  Other ASCII and scan
  52.                     codes are given in the BASIC and in the DOS
  53.                     Technical Reference manuals.
  54.  
  55.                     The two locations to examine and change for
  56.                     the NPAD colors are 02FF and 0413, which have
  57.                     a default value of 70h (112 decimal).  On a
  58.                     color monitor this produces a white (7)
  59.                     background with black (0) characters.  
  60.                    
  61.  
  62.                                  Page -2-
  63.  
  64.                     For red letters on white you would change the 
  65.                     70h to 74h (116 decimal) at these two locations.  
  66.                     The colors to which NPAD resets its portion
  67.                     of the screen on exit are set by the value at
  68.                     xxxx:0350h.  The default value is 07 (white
  69.                     characters on a black background).  For white
  70.                     letters on a dark blue background, change the
  71.                     07 to 17h (23 decimal); for dark blue letters
  72.                     on white, use 71h (113 decimal) at this location.
  73.  
  74.                     When you have made the changes you want, at
  75.                     the DEBUG hyphen prompt enter W and then Q.
  76.  
  77.                     Notes:
  78.  
  79.                     1.   NPAD is a memory-resident program that
  80.                          must scan the keyboard interrupts.  It
  81.                          will conflict with applications programs
  82.                          (e.g., XyWrite) that themselves
  83.                          commandeer the keyboard interrupts.
  84.